<%@taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@include file="../WEB-INF/jspf/controlesessao.jspf"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Novo TipoCursos</title>
<script type="text/javascript" src="../js/jquery.js" ></script>
<script type="text/javascript" src="../js/jquery.validate.js"></script>
<script type="text/javascript" src="../js/forms.js"></script>
<script type="text/javascript" src="../js/jquery-ui-1.8.2.custom.min.js" ></script>
        <link rel="stylesheet" href="../css/ui-lightness/jquery-ui-1.8.2.custom.css">
<link rel="stylesheet" href="../css/forms.css"></head>
<script>$(document).ready(function(){
    $("#form").validate({
        rules: {
desc_tipocurso: {required: true}
        },
        submitHandler: function(form) {
            salvar(form);
            if (form.action.indexOf("insert.jsp")>=0){
                form.reset();
            }
        }
    });
});
</script>


<body>

<form name="form" id="form" method="post" action="insert.jsp" >
<div id="formulario">
<fieldset><legend>Dados</legend>
<p><label class="lbInput">Modalidade<em>*</em></label>
<input type="text" name="desc_tipocurso" size="100" maxlength="100" class="required">
</p>
<p>
<input class="submit" type="submit" value="Salvar">
<input class="submit" type="button" value="Remover" onclick="remover(document.forms[0])" style="visibility:hidden">
<input class="submit" type="button" value="Voltar" onclick="listar('fm_lista_TipoCursos.jsp')">
</p>
<div id="ajax_dados" style="display:block">
</div>
<div id="msg" style="display:none"></div>
</fieldset>
</div>
<input type="hidden" id="token" name="token" value="${sessionScope.token}" /> </form>
</body>
</html>
